export const fields = [
    {
        "dataIndex": "id",
        "title": "id"
    },
    {
        "dataIndex": "deleted",
        "title": "是否删除"
    },
    {
        "dataIndex": "addressCounty",
        "title": "区域名称",
        type: 'input'
    },
    {
        "dataIndex": "agricultureForestryFisheriesOutput",
        "title": "农林牧渔业产值"
    },
    {
        "dataIndex": "appleOutput",
        "title": "苹果产量"
    },
    {
        "dataIndex": "appleSownArea",
        "title": "苹果播种面积"
    },
    {
        "dataIndex": "appleYieldPerUnitArea",
        "title": "苹果单位面积产量"
    },
    {
        "dataIndex": "aquaticProductOutput",
        "title": "水产品产量"
    },
    {
        "dataIndex": "arableLandArea",
        "title": "耕地面积"
    },
    {
        "dataIndex": "bananaOutput",
        "title": "香蕉产量"
    },
    {
        "dataIndex": "bananaSownArea",
        "title": "香蕉播种面积"
    },
    {
        "dataIndex": "bananaYieldPerUnitArea",
        "title": "香蕉单位面积产量"
    },
    {
        "dataIndex": "beetOutput",
        "title": "甜菜产量"
    },
    {
        "dataIndex": "beetSownArea",
        "title": "甜菜播种面积"
    },
    {
        "dataIndex": "beetYieldPerUnitArea",
        "title": "甜菜单位面积产量"
    },
    {
        "dataIndex": "citrusOutput",
        "title": "柑桔产量"
    },
    {
        "dataIndex": "citrusSownArea",
        "title": "柑桔播种面积"
    },
    {
        "dataIndex": "citrusYieldPerUnitArea",
        "title": "柑桔单位面积产量"
    },
    {
        "dataIndex": "civilVehicleOwnership",
        "title": "民用汽车拥有量"
    },
    {
        "dataIndex": "contactPhone",
        "title": "联系电话"
    },
    {
        "dataIndex": "cornOutput",
        "title": "玉米产量"
    },
    {
        "dataIndex": "cornSownArea",
        "title": "玉米播种面积"
    },
    {
        "dataIndex": "cornYieldPerUnitArea",
        "title": "玉米单位面积产量"
    },
    {
        "dataIndex": "cottonOutput",
        "title": "棉花产量"
    },
    {
        "dataIndex": "cottonSownArea",
        "title": "棉花播种面积"
    },
    {
        "dataIndex": "cottonYieldPerUnitArea",
        "title": "棉花单位面积产量"
    },
    {
        "dataIndex": "fillingInstructions",
        "title": "填写说明"
    },
    {
        "dataIndex": "flueCuredTobaccoOutput",
        "title": "烤烟产量"
    },
    {
        "dataIndex": "flueCuredTobaccoSownArea",
        "title": "烤烟播种面积"
    },
    {
        "dataIndex": "flueCuredTobaccoYieldPerUnitArea",
        "title": "烤烟单位面积产量"
    },
    {
        "dataIndex": "formFiller",
        "title": "填表人"
    },
    {
        "dataIndex": "grainOutput",
        "title": "粮食产量"
    },
    {
        "dataIndex": "grapeOutput",
        "title": "葡萄产量"
    },
    {
        "dataIndex": "grapeSownArea",
        "title": "葡萄播种面积"
    },
    {
        "dataIndex": "grapeYieldPerUnitArea",
        "title": "葡萄单位面积产量"
    },
    {
        "dataIndex": "highlandBarleyOutput",
        "title": "青稞产量"
    },
    {
        "dataIndex": "highlandBarleySownArea",
        "title": "青稞播种面积"
    },
    {
        "dataIndex": "highlandBarleyYieldPerUnitArea",
        "title": "青稞单位面积产量"
    },
    {
        "dataIndex": "jujubeOutput",
        "title": "红枣产量"
    },
    {
        "dataIndex": "jujubeSownArea",
        "title": "红枣播种面积"
    },
    {
        "dataIndex": "jujubeYieldPerUnitArea",
        "title": "红枣单位面积产量"
    },
    {
        "dataIndex": "largeLivestockCount",
        "title": "大牲畜数量"
    },
    {
        "dataIndex": "localGeneralBudgetExpenditure",
        "title": "地方财政一般预算支出"
    },
    {
        "dataIndex": "localGeneralBudgetRevenue",
        "title": "地方财政一般预算收入"
    },
    {
        "dataIndex": "mainAgriculturalMachineryCount",
        "title": "主要农业机械拥有量"
    },
    {
        "dataIndex": "medicinalCropsOutput",
        "title": "药材产量"
    },
    {
        "dataIndex": "medicinalCropsSownArea",
        "title": "药材播种面积"
    },
    {
        "dataIndex": "medicinalCropsYieldPerUnitArea",
        "title": "药材单位面积产量"
    },
    {
        "dataIndex": "melonOutput",
        "title": "甜瓜产量"
    },
    {
        "dataIndex": "melonSownArea",
        "title": "甜瓜播种面积"
    },
    {
        "dataIndex": "melonYieldPerUnitArea",
        "title": "甜瓜单位面积产量"
    },
    {
        "dataIndex": "peanutOutput",
        "title": "花生产量"
    },
    {
        "dataIndex": "peanutSownArea",
        "title": "花生播种面积"
    },
    {
        "dataIndex": "peanutYieldPerUnitArea",
        "title": "花生单位面积产量"
    },
    {
        "dataIndex": "pearOutput",
        "title": "梨产量"
    },
    {
        "dataIndex": "pearSownArea",
        "title": "梨播种面积"
    },
    {
        "dataIndex": "pearYieldPerUnitArea",
        "title": "梨单位面积产量"
    },
    {
        "dataIndex": "perCapitaDisposableIncome",
        "title": "居民人均可支配收入"
    },
    {
        "dataIndex": "perCapitaRegionalGdp",
        "title": "人均地区生产总值"
    },
    {
        "dataIndex": "persimmonOutput",
        "title": "柿子产量"
    },
    {
        "dataIndex": "persimmonSownArea",
        "title": "柿子播种面积"
    },
    {
        "dataIndex": "persimmonYieldPerUnitArea",
        "title": "柿子单位面积产量"
    },
    {
        "dataIndex": "pineappleOutput",
        "title": "菠萝产量"
    },
    {
        "dataIndex": "pineappleSownArea",
        "title": "菠萝播种面积"
    },
    {
        "dataIndex": "pineappleYieldPerUnitArea",
        "title": "菠萝单位面积产量"
    },
    {
        "dataIndex": "potatoOutput",
        "title": "马铃薯产量"
    },
    {
        "dataIndex": "potatoSownArea",
        "title": "马铃薯播种面积"
    },
    {
        "dataIndex": "potatoYieldPerUnitArea",
        "title": "马铃薯单位面积产量"
    },
    {
        "dataIndex": "primaryIndustryValue",
        "title": "第一产业增加值"
    },
    {
        "dataIndex": "rapeseedOutput",
        "title": "油菜籽产量"
    },
    {
        "dataIndex": "rapeseedSownArea",
        "title": "油菜籽播种面积"
    },
    {
        "dataIndex": "rapeseedYieldPerUnitArea",
        "title": "油菜籽单位面积产量"
    },
    {
        "dataIndex": "regionalGdp",
        "title": "地区生产总值"
    },
    {
        "dataIndex": "reportDate",
        "title": "报出日期"
    },
    {
        "dataIndex": "riceOutput",
        "title": "水稻产量"
    },
    {
        "dataIndex": "riceSownArea",
        "title": "水稻播种面积"
    },
    {
        "dataIndex": "riceYieldPerUnitArea",
        "title": "水稻单位面积产量"
    },
    {
        "dataIndex": "ruralPerCapitaDisposableIncome",
        "title": "农村居民人均可支配收入"
    },
    {
        "dataIndex": "secondaryIndustryValue",
        "title": "第二产业增加值"
    },
    {
        "dataIndex": "sorghumOutput",
        "title": "高粱产量"
    },
    {
        "dataIndex": "sorghumSownArea",
        "title": "高粱播种面积"
    },
    {
        "dataIndex": "sorghumYieldPerUnitArea",
        "title": "高粱单位面积产量"
    },
    {
        "dataIndex": "soybeanOutput",
        "title": "大豆产量"
    },
    {
        "dataIndex": "soybeanSownArea",
        "title": "大豆播种面积"
    },
    {
        "dataIndex": "soybeanYieldPerUnitArea",
        "title": "大豆单位面积产量"
    },
    {
        "dataIndex": "specialCropsTypes",
        "title": "特色农作物种类"
    },
    {
        "dataIndex": "statisticsResponsiblePerson",
        "title": "统计负责人"
    },
    {
        "dataIndex": "strawberryOutput",
        "title": "草莓产量"
    },
    {
        "dataIndex": "strawberrySownArea",
        "title": "草莓播种面积"
    },
    {
        "dataIndex": "strawberryYieldPerUnitArea",
        "title": "草莓单位面积产量"
    },
    {
        "dataIndex": "sugarcaneOutput",
        "title": "甘蔗产量"
    },
    {
        "dataIndex": "sugarcaneSownArea",
        "title": "甘蔗播种面积"
    },
    {
        "dataIndex": "sugarcaneYieldPerUnitArea",
        "title": "甘蔗单位面积产量"
    },
    {
        "dataIndex": "sweetPotatoOutput",
        "title": "甘薯产量"
    },
    {
        "dataIndex": "sweetPotatoSownArea",
        "title": "甘薯播种面积"
    },
    {
        "dataIndex": "sweetPotatoYieldPerUnitArea",
        "title": "甘薯单位面积产量"
    },
    {
        "dataIndex": "teaOutput",
        "title": "茶叶产量"
    },
    {
        "dataIndex": "teaSownArea",
        "title": "茶叶播种面积"
    },
    {
        "dataIndex": "teaYieldPerUnitArea",
        "title": "茶叶单位面积产量"
    },
    {
        "dataIndex": "telephonePenetrationRate",
        "title": "电话普及率(包括移动电话)"
    },
    {
        "dataIndex": "tertiaryIndustryValue",
        "title": "第三产业增加值"
    },
    {
        "dataIndex": "tobaccoOutput",
        "title": "烟叶产量"
    },
    {
        "dataIndex": "tobaccoSownArea",
        "title": "烟叶播种面积"
    },
    {
        "dataIndex": "tobaccoYieldPerUnitArea",
        "title": "烟叶单位面积产量"
    },
    {
        "dataIndex": "totalFixedAssetInvestment",
        "title": "全社会固定资产投资总额"
    },
    {
        "dataIndex": "totalSocialRetailSales",
        "title": "社会消费品零售总额"
    },
    {
        "dataIndex": "unitResponsiblePerson",
        "title": "单位负责人"
    },
    {
        "dataIndex": "urbanPerCapitaDisposableIncome",
        "title": "城镇居民人均可支配收入"
    },
    {
        "dataIndex": "vegetableOutput",
        "title": "蔬菜产量"
    },
    {
        "dataIndex": "vegetableSownArea",
        "title": "蔬菜播种面积"
    },
    {
        "dataIndex": "vegetableYieldPerUnitArea",
        "title": "蔬菜单位面积产量"
    },
    {
        "dataIndex": "verificationStatus",
        "title": "核实状态"
    },
    {
        "dataIndex": "watermelonOutput",
        "title": "西瓜产量"
    },
    {
        "dataIndex": "watermelonSownArea",
        "title": "西瓜播种面积"
    },
    {
        "dataIndex": "watermelonYieldPerUnitArea",
        "title": "西瓜单位面积产量"
    },
    {
        "dataIndex": "wheatOutput",
        "title": "小麦产量"
    },
    {
        "dataIndex": "wheatSownArea",
        "title": "小麦播种面积"
    },
    {
        "dataIndex": "wheatYieldPerUnitArea",
        "title": "小麦单位面积产量"
    },
    {
        "dataIndex": "xq",
        "title": "详情"
    }
]

export const getFields = (names = []) => {
    const cols = names.map(name => {
        const fieldItem = fields.find(f => f.title === name);
        if (!fieldItem) {
            console.error(name);
        }
        return fieldItem;
    }).filter(item => {
        if (!item) {
            return false;
        }
        return true
    })
    return cols;
}